package com.zlcx.tz.live.constant;

 
public enum MsgContentIdType {

    Person("个人", "1"),
    Room("直播房间", "2"),
    Group("群", "3"),
    ;

    MsgContentIdType(String tips, String code) {
        this.tips = tips;
        this.code = code;
    }

    private String tips;
    private String code;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }

    public static MsgContentIdType getMsgContentIdType(String code) {
        for (MsgContentIdType field : MsgContentIdType.values()) {
            if (code.equals(field.getCode())) {
                return field;
            }
        }
        return null;
    }
}
